package com.powernode.ssm.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@ApiModel("查询员工管理请求体")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class QueryEmpVo {

	@ApiModelProperty(value = "员工编号")
	private String empno;

	@ApiModelProperty(value = "员工名称")
	private String ename;

	@ApiModelProperty(value = "职位")
	private String job;

	@ApiModelProperty(value = "上级")
	private String mgr;

	@ApiModelProperty(value = "入职日期")
	private String hiredate;

	@ApiModelProperty(value = "月薪")
	private String sal;

	@ApiModelProperty(value = "绩效")
	private String comm;

	@ApiModelProperty(value = "部门编号")
	private String deptno;



   /**
    * 当前页
    */
   @ApiModelProperty(value = "当前页")
   @NotNull(message="翻页参数currentPage不能为空")
   private Integer currentPage = 1;

   /**
    * 当前页记录数
    */
   @NotNull(message="翻页参数size不能为空")
   @ApiModelProperty(value = "当前页记录数")
   @Range(min = 1, max = 200, message = "翻页参数pageSize不合法")
   private Integer pageSize = 30;

}
